package com.itrustsolution.rms.entities;
// Generated 25 Mei 11 22:19:57 by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * RmsProductType generated by hbm2java
 */
@Entity
@Table(name="rms_product_type"
    ,catalog="rms"
)
public class RmsProductType  implements java.io.Serializable {


     private Integer productTypeId;
     private String productTypeName;
     private String productTypeInformation;
     private boolean productTypeIsactive;
     private boolean productTypeIsdeleted;
     private Set<RmsProduct> rmsProducts = new HashSet(0);

    public RmsProductType() {
    }

	
    public RmsProductType(String productTypeName, boolean productTypeIsactive, boolean productTypeIsdeleted) {
        this.productTypeName = productTypeName;
        this.productTypeIsactive = productTypeIsactive;
        this.productTypeIsdeleted = productTypeIsdeleted;
    }
    public RmsProductType(String productTypeName, String productTypeInformation, boolean productTypeIsactive, boolean productTypeIsdeleted, Set rmsProducts) {
       this.productTypeName = productTypeName;
       this.productTypeInformation = productTypeInformation;
       this.productTypeIsactive = productTypeIsactive;
       this.productTypeIsdeleted = productTypeIsdeleted;
       this.rmsProducts = rmsProducts;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="PRODUCT_TYPE_ID", unique=true, nullable=false)
    public Integer getProductTypeId() {
        return this.productTypeId;
    }
    
    public void setProductTypeId(Integer productTypeId) {
        this.productTypeId = productTypeId;
    }
    
    @Column(name="PRODUCT_TYPE_NAME", nullable=false, length=10)
    public String getProductTypeName() {
        return this.productTypeName;
    }
    
    public void setProductTypeName(String productTypeName) {
        this.productTypeName = productTypeName;
    }
    
    @Column(name="PRODUCT_TYPE_INFORMATION", length=10)
    public String getProductTypeInformation() {
        return this.productTypeInformation;
    }
    
    public void setProductTypeInformation(String productTypeInformation) {
        this.productTypeInformation = productTypeInformation;
    }
    
    @Column(name="PRODUCT_TYPE_ISACTIVE", nullable=false)
    public boolean isProductTypeIsactive() {
        return this.productTypeIsactive;
    }
    
    public void setProductTypeIsactive(boolean productTypeIsactive) {
        this.productTypeIsactive = productTypeIsactive;
    }
    
    @Column(name="PRODUCT_TYPE_ISDELETED", nullable=false)
    public boolean isProductTypeIsdeleted() {
        return this.productTypeIsdeleted;
    }
    
    public void setProductTypeIsdeleted(boolean productTypeIsdeleted) {
        this.productTypeIsdeleted = productTypeIsdeleted;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="rmsProductType")
    public Set<RmsProduct> getRmsProducts() {
        return this.rmsProducts;
    }
    
    public void setRmsProducts(Set<RmsProduct> rmsProducts) {
        this.rmsProducts = rmsProducts;
    }




}


